myabstract.docx
Joe’s Filenames Use Spaces and Punctuation.xlsx
figure 1.png
fig 2.png
JW7d^(2sl@deletethisandyourcareerisoverWx2*.txt
2014-06-08_abstract-for-sla.docx
joes-filenames-are-getting-better.xlsx
fig01_scatterplot-talk-length-vs-interest.png
fig02_histogram-talk-attendance.png
1986-01-28_raw-data-from-challenger-o-rings.txt
Except of complete file listing:
Example of globbing to narrow file listing:
Same using Mac OS Finder search facilities:
Same using regex in R:
Deliberate use of “-” and “_" allows recovery of meta-data from the filenames:
This happens to be R but also possible in the shell, Python, etc.
foo and FooWhich set of file(name)s do you want at 3 a.m. before a deadline?
Easy to figure out what the heck something is, based on its name
Chronological order:
Logical order: Put something numeric first
Dates: Use the ISO 8601 standard for dates: YYYY-MM-DD
Left pad other numbers with zeros
If you don’t left pad, you get this:
10_final-figs-for-publication.R
1_data-cleaning.R
2_fit-model.R
which is just sad :(
Go forth and use awesome file names :)